# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=xfontsel
pkgver=1.1.1
pkgrel=0
pkgdesc="Point and click selection of X11 font names"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="libxaw-dev libxmu-dev libxt-dev libx11-dev gettext-dev"
subpackages="$pkgname-doc"
source="https://www.x.org/archive/individual/app/xfontsel-$pkgver.tar.gz"

build() {
	export LIBS="$LIBS -lintl"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d2f428293cca2eab6c6da6d50328600b0d417f8051b98c66db8d792b90ea733e7382d04397f736748fb7860f4288b1cb7aac4b15948677105c3a9f59f749a2d2  xfontsel-1.1.1.tar.gz
"
